package com.tmallgo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tmallgo.dao.PermissionDao;
import com.tmallgo.domain.Permission;
import com.tmallgo.service.PermissionService;
@Service
public class PermissionServiceImpl implements PermissionService{
	@Autowired
	private PermissionDao permissionDao;
	@Override
	@Transactional(readOnly=true)
	public Permission single(Long userId) {
		return permissionDao.single(userId);
	}

	@Override
	public boolean update(Permission permission) {
		return permissionDao.update(permission);
	}

	@Override
	public boolean save(Permission permission) {
		return permissionDao.save(permission);
	}

}
